GtkDialog: fix invisible action area
authorMatthias Clasen <mclasen@redhat.com>
Wed, 2 Jul 2014 04:33:46 +0000 (00:33 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 2 Jul 2014 04:33:46 +0000 (00:33 -0400)
When there area explicitly added buttons in the action area,
we were trying to ensure that the action area is visible,
but failed, since we are now hiding the action_box. Fix it
by showing the action_box when things are left in the action
area.

gtk/gtkdialog.c

index c668a4983e33ea34fe1331bd3dcb8512489c8847..48d6426962bce7c88f7b063425d5c75c6551ea32 100644 (file)
@@ -274,7 +274,7 @@ add_cb (GtkContainer *container,
   if (priv->use_header_bar)
     g_warning ("Content added to the action area of a dialog using header bars");
 
-  gtk_widget_show (GTK_WIDGET (container));
+  gtk_widget_show (GTK_WIDGET (priv->action_box));
 }
 
 static void